package com.brush.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brush.common.core.domain.entity.SysUser;
import com.brush.common.core.domain.resp.AdminUserResp;
import com.brush.system.domain.req.sysuser.SysUserReq;
import com.brush.system.domain.resp.sysuser.SysUserResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 18494
* @description 针对表【sys_user(用户信息表)】的数据库操作Mapper
* @createDate 2024-08-19 10:28:03
* @Entity com.brush.system.domain.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 分页查询
     * @param req
     * @return
     */
    List<SysUserResp> paginationQuery(@Param(value = "req") SysUserReq req);

    AdminUserResp selectUserByUserName(String userName);

    List<SysUser> selectUserList(@Param(value = "req") SysUserReq user);

    AdminUserResp selectUserById(Long userId);
}




